if (window != window.top) {
    // 说明被嵌套
    let host = null;
    let pathname = null;
    try {
      // 多层嵌套window.top[0]下标不存在。会走catch
      host = window.top.location.host;
      pathname = window.top.location.pathname;
    } catch (e) {}
    const parentURL = host + pathname;
    const whitelist = [
      "flightadminapi.17usoft.com/dapserver/",
      "flightadminapi.t.17usoft.com/dapserver/",
      "flightadminapi.17usoft.com/FineReport/ReportServer",
    ];
    // 不在白名单列表内
    if (whitelist.find((i) => i === parentURL) === undefined) {
      document.addEventListener("DOMContentLoaded", function () {
        document.getElementsByTagName('body')[0].innerHTML =
          "如需查看数据请到采云间：http://flightadminapi.17usoft.com/dapserver/#/";
        window.top.location.replace(
          "http://flightadminapi.17usoft.com/dapserver/"
        );
      });
    }
  }